const router = require('koa-router')()
const controller = require('./../app/controller/userController')

router.prefix('/users')

router.get('/', async (ctx, next) => {
	ctx.body = "user list"
})

router.get('/:id', (ctx, next) => {
	controller.getUserInfo(ctx, next)
})

router.get('/bar', function (ctx, next) {
  ctx.body = 'this is a users/bar response'
})

module.exports = router
